HC: Avoid excessive selectors from prev commit
authorDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 18:24:39 +0000 (19:24 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 20 Jun 2018 18:26:29 +0000 (19:26 +0100)
The new rule does not need to affect all those other pseudoclasses. I
just put it in the wrong scope.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css

index 397a3179375385d3338987878f244cc6f4997b61..200c9497eadda1e22393f9a20672ac20704d8dae 100644 (file)
@@ -215,10 +215,10 @@ entry {
         border-color: transparent;
         border-radius: 0;
         box-shadow: none;
-
-        // Dodge transparency in selected treeview row, else bg & fg end up same
-        treeview &:focus { background-color: $base_color; }
       }
+
+      // Dodge transparency in selected treeview row, else bg & fg end up same
+      treeview &:focus { background-color: $base_color; }
     }
 
     &:focus { @include entry(focus); }
index dc0365ee0156ff2ac8aa808bba1adf113927ee16..5ced7557b7afc6ca71b4c6e24845751a8be7df08 100644 (file)
@@ -92,7 +92,7 @@ spinbutton:not(.vertical) undershoot.right, entry undershoot.right { background-
 
 spinbutton.flat:focus:not(.vertical), spinbutton.flat:backdrop:not(.vertical), spinbutton.flat:disabled:not(.vertical), spinbutton.flat:not(.vertical), entry.flat:focus, entry.flat:backdrop, entry.flat:disabled, entry.flat { min-height: 0; padding: 2px; background-image: none; border-color: transparent; border-radius: 0; box-shadow: none; }
 
-treeview spinbutton.flat:focus:focus:not(.vertical), treeview spinbutton.flat:backdrop:focus:not(.vertical), treeview spinbutton.flat:disabled:focus:not(.vertical), treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus:focus, treeview entry.flat:backdrop:focus, treeview entry.flat:disabled:focus, treeview entry.flat:focus { background-color: #111; }
+treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus { background-color: #111; }
 
 spinbutton:focus:not(.vertical), entry:focus { background-color: transparent; border-style: solid; background-image: linear-gradient(to bottom, #090909, #111 90%); border-color: #ddd; box-shadow: inset 0 2px 2px -2px #090909, inset 0 0 0 1px #ddd; }
 
index 98ab363c39bac767466626bb693ebc097fbd0c2a..379fea90cecac233e0da9dd9d1b7b8e4221b0424 100644 (file)
@@ -92,7 +92,7 @@ spinbutton:not(.vertical) undershoot.right, entry undershoot.right { background-
 
 spinbutton.flat:focus:not(.vertical), spinbutton.flat:backdrop:not(.vertical), spinbutton.flat:disabled:not(.vertical), spinbutton.flat:not(.vertical), entry.flat:focus, entry.flat:backdrop, entry.flat:disabled, entry.flat { min-height: 0; padding: 2px; background-image: none; border-color: transparent; border-radius: 0; box-shadow: none; }
 
-treeview spinbutton.flat:focus:focus:not(.vertical), treeview spinbutton.flat:backdrop:focus:not(.vertical), treeview spinbutton.flat:disabled:focus:not(.vertical), treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus:focus, treeview entry.flat:backdrop:focus, treeview entry.flat:disabled:focus, treeview entry.flat:focus { background-color: #fff; }
+treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus { background-color: #fff; }
 
 spinbutton:focus:not(.vertical), entry:focus { background-color: transparent; border-style: solid; background-image: linear-gradient(to bottom, #f7f7f7, #fff 90%); border-color: #000; box-shadow: inset 0 2px 2px -2px gray, inset 0 0 0 1px #000; }